// template.js
module.exports = {
    vueTemplate: compoenntName => {
        return `<template>
    <div class="${compoenntName}">
    ${compoenntName}页面
    </div>
</template>
<script>
import api from '@/api/news.js'
//import LHeader from '@/components/layout/LHeader.vue'


export default {
    name: '${compoenntName}',
    components: {  },
    data() {
        return {
            list: [],
            pageSize:30
        }
    },
    methods:{
        async onLoad(pageIndex) {
            let obj = {
                pageNo: pageIndex,
                pageSize: this.pageSize
            };
            let data = await api.getDoneList(obj);
        },
        viewDetail(item) {
            //this.$router.push({path:'/cityCaseDetail/'+ item.id});
        }
    },
    mounted() {
    }
};
</script>
<style lang="scss" scoped>
.${compoenntName} {
}
</style>`
    }
}


